package cn.livingCloud.dto;

import cn.livingCloud.context.Config;

/**
 * Created by 唐旭 on 2016/1/28.
 */
public class ImageUploadConfigDto {
    private String imageActionName = "uploadimage";
    private String imageFieldName = "imageFile";
    private long imageMaxSize = 2048000L;
    private String[] imageAllowFiles = Config.getAllowImageExtension(".");
    private boolean imageCompressEnable = true;
    private int imageCompressBorder = 1600;
    private String imageInsertAlign = "none";
    private String imageUrlPrefix = Config.getDomainUrl() + "image/";
    private String imagePathFormat;

    private String scrawlActionName = "uploadimage";
    private String scrawlFieldName = "upfile";
    private String scrawlPathFormat;
    private long scrawlMaxSize = 2048000L;
    private String scrawlUrlPrefix;
    private String scrawlInsertAlign = "none";

    private String snapscreenActionName = "uploadimage";
    private String snapscreenPathFormat;
    private String snapscreenUrlPrefix;
    private String snapscreenInsertAlign = "none";

    private String[] catcherLocalDomain = new String[]{"127.0.0.1", "localhost", "img.baidu.com"};
    private String catcherActionName = "uploadimage";
    private String catcherFieldName = "source";
    private String catcherPathFormat;
    private String catcherUrlPrefix;
    private long catcherMaxSize = 2048000L;
    private String catcherAllowFiles;

    private String videoActionName = "uploadimage";
    private String videoFieldName = "upfile";
    private String videoPathFormat;
    private String videoUrlPrefix;
    private long videoMaxSize = 102400000L;
    private String[] videoAllowFiles = Config.getAllowImageExtension();

    private String fileActionName = "uploadimage";
    private String fileFieldName = "upfile";
    private String filePathFormat;
    private String fileUrlPrefix;
    private long fileMaxSize = 51200000L;
    private String[] fileAllowFiles = Config.getAllowImageExtension();

    private String imageManagerActionName = "listImage";
    private String imageManagerListPath;
    private int imageManagerListSize = 30;
    private String imageManagerUrlPrefix = Config.getDomainUrl() + "image/";
    private String imageManagerInsertAlign = "none";

    private String[] imageManagerAllowFiles = Config.getAllowImageExtension();
    private String fileManagerActionName = "uploadimage";
    private String fileManagerListPath;
    private String fileManagerUrlPrefix;
    private int fileManagerListSize = 20;
    private String[] fileManagerAllowFiles = Config.getAllowImageExtension();

    public ImageUploadConfigDto() {
    }

    public String getImageActionName() {
        return imageActionName;
    }

    public ImageUploadConfigDto setImageActionName(String imageActionName) {
        this.imageActionName = imageActionName;
        return this;
    }

    public String getImageFieldName() {
        return imageFieldName;
    }

    public ImageUploadConfigDto setImageFieldName(String imageFieldName) {
        this.imageFieldName = imageFieldName;
        return this;
    }

    public long getImageMaxSize() {
        return imageMaxSize;
    }

    public ImageUploadConfigDto setImageMaxSize(long imageMaxSize) {
        this.imageMaxSize = imageMaxSize;
        return this;
    }

    public String[] getImageAllowFiles() {
        return imageAllowFiles;
    }

    public ImageUploadConfigDto setImageAllowFiles(String[] imageAllowFiles) {
        this.imageAllowFiles = imageAllowFiles;
        return this;
    }

    public boolean isImageCompressEnable() {
        return imageCompressEnable;
    }

    public ImageUploadConfigDto setImageCompressEnable(boolean imageCompressEnable) {
        this.imageCompressEnable = imageCompressEnable;
        return this;
    }

    public int getImageCompressBorder() {
        return imageCompressBorder;
    }

    public ImageUploadConfigDto setImageCompressBorder(int imageCompressBorder) {
        this.imageCompressBorder = imageCompressBorder;
        return this;
    }

    public String getImageInsertAlign() {
        return imageInsertAlign;
    }

    public ImageUploadConfigDto setImageInsertAlign(String imageInsertAlign) {
        this.imageInsertAlign = imageInsertAlign;
        return this;
    }

    public String getImageUrlPrefix() {
        return imageUrlPrefix;
    }

    public ImageUploadConfigDto setImageUrlPrefix(String imageUrlPrefix) {
        this.imageUrlPrefix = imageUrlPrefix;
        return this;
    }

    public String getImagePathFormat() {
        return imagePathFormat;
    }

    public ImageUploadConfigDto setImagePathFormat(String imagePathFormat) {
        this.imagePathFormat = imagePathFormat;
        return this;
    }

    public String getScrawlActionName() {
        return scrawlActionName;
    }

    public ImageUploadConfigDto setScrawlActionName(String scrawlActionName) {
        this.scrawlActionName = scrawlActionName;
        return this;
    }

    public String getScrawlFieldName() {
        return scrawlFieldName;
    }

    public ImageUploadConfigDto setScrawlFieldName(String scrawlFieldName) {
        this.scrawlFieldName = scrawlFieldName;
        return this;
    }

    public String getScrawlPathFormat() {
        return scrawlPathFormat;
    }

    public ImageUploadConfigDto setScrawlPathFormat(String scrawlPathFormat) {
        this.scrawlPathFormat = scrawlPathFormat;
        return this;
    }

    public long getScrawlMaxSize() {
        return scrawlMaxSize;
    }

    public ImageUploadConfigDto setScrawlMaxSize(long scrawlMaxSize) {
        this.scrawlMaxSize = scrawlMaxSize;
        return this;
    }

    public String getScrawlUrlPrefix() {
        return scrawlUrlPrefix;
    }

    public ImageUploadConfigDto setScrawlUrlPrefix(String scrawlUrlPrefix) {
        this.scrawlUrlPrefix = scrawlUrlPrefix;
        return this;
    }

    public String getScrawlInsertAlign() {
        return scrawlInsertAlign;
    }

    public ImageUploadConfigDto setScrawlInsertAlign(String scrawlInsertAlign) {
        this.scrawlInsertAlign = scrawlInsertAlign;
        return this;
    }

    public String getSnapscreenActionName() {
        return snapscreenActionName;
    }

    public ImageUploadConfigDto setSnapscreenActionName(String snapscreenActionName) {
        this.snapscreenActionName = snapscreenActionName;
        return this;
    }

    public String getSnapscreenPathFormat() {
        return snapscreenPathFormat;
    }

    public ImageUploadConfigDto setSnapscreenPathFormat(String snapscreenPathFormat) {
        this.snapscreenPathFormat = snapscreenPathFormat;
        return this;
    }

    public String getSnapscreenUrlPrefix() {
        return snapscreenUrlPrefix;
    }

    public ImageUploadConfigDto setSnapscreenUrlPrefix(String snapscreenUrlPrefix) {
        this.snapscreenUrlPrefix = snapscreenUrlPrefix;
        return this;
    }

    public String getSnapscreenInsertAlign() {
        return snapscreenInsertAlign;
    }

    public ImageUploadConfigDto setSnapscreenInsertAlign(String snapscreenInsertAlign) {
        this.snapscreenInsertAlign = snapscreenInsertAlign;
        return this;
    }

    public String[] getCatcherLocalDomain() {
        return catcherLocalDomain;
    }

    public ImageUploadConfigDto setCatcherLocalDomain(String[] catcherLocalDomain) {
        this.catcherLocalDomain = catcherLocalDomain;
        return this;
    }

    public String getCatcherActionName() {
        return catcherActionName;
    }

    public ImageUploadConfigDto setCatcherActionName(String catcherActionName) {
        this.catcherActionName = catcherActionName;
        return this;
    }

    public String getCatcherFieldName() {
        return catcherFieldName;
    }

    public ImageUploadConfigDto setCatcherFieldName(String catcherFieldName) {
        this.catcherFieldName = catcherFieldName;
        return this;
    }

    public String getCatcherPathFormat() {
        return catcherPathFormat;
    }

    public ImageUploadConfigDto setCatcherPathFormat(String catcherPathFormat) {
        this.catcherPathFormat = catcherPathFormat;
        return this;
    }

    public String getCatcherUrlPrefix() {
        return catcherUrlPrefix;
    }

    public ImageUploadConfigDto setCatcherUrlPrefix(String catcherUrlPrefix) {
        this.catcherUrlPrefix = catcherUrlPrefix;
        return this;
    }

    public long getCatcherMaxSize() {
        return catcherMaxSize;
    }

    public ImageUploadConfigDto setCatcherMaxSize(long catcherMaxSize) {
        this.catcherMaxSize = catcherMaxSize;
        return this;
    }

    public String getCatcherAllowFiles() {
        return catcherAllowFiles;
    }

    public ImageUploadConfigDto setCatcherAllowFiles(String catcherAllowFiles) {
        this.catcherAllowFiles = catcherAllowFiles;
        return this;
    }

    public String getVideoActionName() {
        return videoActionName;
    }

    public ImageUploadConfigDto setVideoActionName(String videoActionName) {
        this.videoActionName = videoActionName;
        return this;
    }

    public String getVideoFieldName() {
        return videoFieldName;
    }

    public ImageUploadConfigDto setVideoFieldName(String videoFieldName) {
        this.videoFieldName = videoFieldName;
        return this;
    }

    public String getVideoPathFormat() {
        return videoPathFormat;
    }

    public ImageUploadConfigDto setVideoPathFormat(String videoPathFormat) {
        this.videoPathFormat = videoPathFormat;
        return this;
    }

    public String getVideoUrlPrefix() {
        return videoUrlPrefix;
    }

    public ImageUploadConfigDto setVideoUrlPrefix(String videoUrlPrefix) {
        this.videoUrlPrefix = videoUrlPrefix;
        return this;
    }

    public long getVideoMaxSize() {
        return videoMaxSize;
    }

    public ImageUploadConfigDto setVideoMaxSize(long videoMaxSize) {
        this.videoMaxSize = videoMaxSize;
        return this;
    }

    public String[] getVideoAllowFiles() {
        return videoAllowFiles;
    }

    public ImageUploadConfigDto setVideoAllowFiles(String[] videoAllowFiles) {
        this.videoAllowFiles = videoAllowFiles;
        return this;
    }

    public String getFileActionName() {
        return fileActionName;
    }

    public ImageUploadConfigDto setFileActionName(String fileActionName) {
        this.fileActionName = fileActionName;
        return this;
    }

    public String getFileFieldName() {
        return fileFieldName;
    }

    public ImageUploadConfigDto setFileFieldName(String fileFieldName) {
        this.fileFieldName = fileFieldName;
        return this;
    }

    public String getFilePathFormat() {
        return filePathFormat;
    }

    public ImageUploadConfigDto setFilePathFormat(String filePathFormat) {
        this.filePathFormat = filePathFormat;
        return this;
    }

    public String getFileUrlPrefix() {
        return fileUrlPrefix;
    }

    public ImageUploadConfigDto setFileUrlPrefix(String fileUrlPrefix) {
        this.fileUrlPrefix = fileUrlPrefix;
        return this;
    }

    public long getFileMaxSize() {
        return fileMaxSize;
    }

    public ImageUploadConfigDto setFileMaxSize(long fileMaxSize) {
        this.fileMaxSize = fileMaxSize;
        return this;
    }

    public String[] getFileAllowFiles() {
        return fileAllowFiles;
    }

    public ImageUploadConfigDto setFileAllowFiles(String[] fileAllowFiles) {
        this.fileAllowFiles = fileAllowFiles;
        return this;
    }

    public String getImageManagerActionName() {
        return imageManagerActionName;
    }

    public ImageUploadConfigDto setImageManagerActionName(String imageManagerActionName) {
        this.imageManagerActionName = imageManagerActionName;
        return this;
    }

    public String getImageManagerListPath() {
        return imageManagerListPath;
    }

    public ImageUploadConfigDto setImageManagerListPath(String imageManagerListPath) {
        this.imageManagerListPath = imageManagerListPath;
        return this;
    }

    public int getImageManagerListSize() {
        return imageManagerListSize;
    }

    public ImageUploadConfigDto setImageManagerListSize(int imageManagerListSize) {
        this.imageManagerListSize = imageManagerListSize;
        return this;
    }

    public String getImageManagerUrlPrefix() {
        return imageManagerUrlPrefix;
    }

    public ImageUploadConfigDto setImageManagerUrlPrefix(String imageManagerUrlPrefix) {
        this.imageManagerUrlPrefix = imageManagerUrlPrefix;
        return this;
    }

    public String getImageManagerInsertAlign() {
        return imageManagerInsertAlign;
    }

    public ImageUploadConfigDto setImageManagerInsertAlign(String imageManagerInsertAlign) {
        this.imageManagerInsertAlign = imageManagerInsertAlign;
        return this;
    }

    public String[] getImageManagerAllowFiles() {
        return imageManagerAllowFiles;
    }

    public ImageUploadConfigDto setImageManagerAllowFiles(String[] imageManagerAllowFiles) {
        this.imageManagerAllowFiles = imageManagerAllowFiles;
        return this;
    }

    public String getFileManagerActionName() {
        return fileManagerActionName;
    }

    public ImageUploadConfigDto setFileManagerActionName(String fileManagerActionName) {
        this.fileManagerActionName = fileManagerActionName;
        return this;
    }

    public String getFileManagerListPath() {
        return fileManagerListPath;
    }

    public ImageUploadConfigDto setFileManagerListPath(String fileManagerListPath) {
        this.fileManagerListPath = fileManagerListPath;
        return this;
    }

    public String getFileManagerUrlPrefix() {
        return fileManagerUrlPrefix;
    }

    public ImageUploadConfigDto setFileManagerUrlPrefix(String fileManagerUrlPrefix) {
        this.fileManagerUrlPrefix = fileManagerUrlPrefix;
        return this;
    }

    public int getFileManagerListSize() {
        return fileManagerListSize;
    }

    public ImageUploadConfigDto setFileManagerListSize(int fileManagerListSize) {
        this.fileManagerListSize = fileManagerListSize;
        return this;
    }

    public String[] getFileManagerAllowFiles() {
        return fileManagerAllowFiles;
    }

    public ImageUploadConfigDto setFileManagerAllowFiles(String[] fileManagerAllowFiles) {
        this.fileManagerAllowFiles = fileManagerAllowFiles;
        return this;
    }
}
